home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / pipeline / abacus / p_line / Sheets2 / ReadMe < prev   
Encoding:
Text File  |  1991-12-30  |  9.8 KB  |  204 lines

  1. %OP%VS4.11 (04-Dec-91), Gerald Lewis Fitton, R4000 5065 0380 9644 
  2. %OP%DP0
  3. %OP%IRY
  4. %OP%PL0
  5. %OP%HM0
  6. %OP%FM0
  7. %OP%BM0
  8. %OP%LM4
  9. %OP%FX
  10. %OP%FY
  11. %OP%FS
  12. %OP%PT1
  13. %OP%PDPipeLine
  14. %OP%WC834,2070,148,1620,0,0,0,0
  15. %CO:A,72,72%
  16. %C%Spreadsheets from the Beginning - Part 2
  17. %C%by Gerald L Fitton
  18. Keywords:
  19. Beginners Spreadsheet Eats Fitton
  20.  
  21. Where was Part 1?
  22. The first part of this series, 'Spreadsheets from the Beginning', is 
  23. in the directory Sheets1; read that first.
  24.  
  25. You Are What You Eat
  26. In this tutorial you are going to create a spreadsheet which will 
  27. calculate the number of calories in a main course meal.  As you do this 
  28. you will learn about the pop-up menus and function keys, setting column 
  29. widths, adding columns and inserting rows.  Your first target is the 
  30. sheet [Eats01] which you will find in this directory.  Load it in now 
  31. and have a quick look at it.  I suggest that you print it out so that 
  32. you can easily refer to it while you work through this tutorial.  
  33.  
  34. Alternatively, leave it in a window on screen, or use both!
  35.  
  36. A New Blank Sheet
  37. Click select on the installed !Pipedream icon.
  38.  
  39. The Pop-Up Menus
  40. If you have the full version (not the Pipedream demonstration disc) 
  41. then you can Save and Rename the sheet with one operation.  One way of 
  42. doing this is to use '<CTRL FS>'.  The alternative, which I'm going to 
  43. describe now is to use the pop-up menus.
  44.  
  45. Click the mouse 'menu' (centre) button and a menu appears.  Run the 
  46. pointer through Files and click 'select' on Save.  Change the name in 
  47. the dialogue box to [Eats01a] (the 'a' is so that you don't confuse 
  48. your sheet, [Eats01a], with the one on the disc, [Eats01]) and then 
  49. drag the PipeDream icon into an open directory viewer window.  You have 
  50. saved the sheet as [Eats01a] and you will find the name has changed in 
  51. the title window of the sheet at the same time.
  52.  
  53. The Function keys
  54. Most commands can be executed in any of three ways: a <Ctrl> key 
  55. sequence, the pop-up menus or by using the red or grey function keys, 
  56. marked F1 to F10.  As a beginner you will almost certainly find the 
  57. pop-up menus easiest because every command is available this way.  As 
  58. you get more proficient you will begin to use the function keys for the 
  59. most commonly used commands, and finally, as an expert I expect you 
  60. will use the <Ctrl> key sequences as short-cuts.
  61.  
  62. Add a Column
  63. It doesn't matter where you are in the sheet (ie where the cursor is), 
  64. holding down <Ctrl> and tapping the keys EAC key will add a column to 
  65. the right of the existing sheet (I shall call this <CTRL EAC>).  Add 
  66. columns G and H this way.
  67.  
  68. Change the Column Widths
  69. Your objective is to change the column widths so that the sheet looks 
  70. like [Eats01].  Click the pointer on the A at the top of column A to 
  71. place the cursor in column A.  You can use the Layout - Set column 
  72. width pop-up menu (or <Ctrl W>) to change the width of column A, but it 
  73. is generally quicker to use the mouse to drag the edge of the column; 
  74. you do this by placing the pointer exactly on the line between the A 
  75. and B at the top of the column.  If you look at the Mark block box 
  76. whilst you have the select button depressed you will see a number 
  77. displayed.  This is the column width in characters.  Drag the right 
  78. hand edge of column A until 9 appears in the mark block box; then 
  79. release the select button.  Click select on the letter B to move the 
  80. caret into the B column and change its width to 4.  The other columns, 
  81. C to H have widths of: 11, 6, 16, 8, 6 and 9.
  82.  
  83. Set the Right Margin
  84. '<CTRL H>' (Horizontal extent) can be used on each column individually.  
  85. Use it to set the right margin of column A at 69.  If you have made all 
  86. the columns the correct width then you will find that the short 
  87. vertical (right margin) arrow is just to the left of the letter H.  
  88. Setting the right margin this way sets only one of the columns.  Click 
  89. on B and you will (probably) find the arrow in a different place.  You 
  90. could repeat the '<CTRL H>' sequence for all seven other columns but it 
  91. is quicker to set them all with one operation.  Click on A, then hold 
  92. down '<Ctrl>' and tap first 'LML' followed by 'LMR'.  The arrow will 
  93. move first to the left and then back to the right.  You might think 
  94. that nothing has changed but click select on B, C, D, E, F, G and H and 
  95. you will find that the right margin arrow is always just left of the 
  96. 'H'.  All the right margins have been set by the one operation.
  97.  
  98. Saving the Sheet
  99. Save the file if you can.  You don't need to drag the icon into the 
  100. directory viewer the second time you Save.  Just click on OK or press 
  101. <Return>.  Save as often as you remember it and certainly now that you 
  102. have successfully reached a staging post.  When I'm writing articles I 
  103. Save after completing every paragraph.
  104.  
  105. Loading a Sheet
  106. If you make a big mistake you can always reload the sheet; you did save 
  107. it didn't you?  Kill the ruined sheet by clicking on the close box (the 
  108. 'x' near the top left of the sheet).  Double click on the sheet icon in 
  109. the directory viewer and it will reload.
  110.  
  111. The Conversion Factors
  112. There is a major difference in philosophy between Algebra and Computing 
  113. which might be put as "In Computing, never use a constant when you can 
  114. use a variable".  In Algebra it is usual to eliminate as many variables 
  115. as possible from the problem by turning them into values; in Computing, 
  116. the flexibility of a spreadsheet is usually enhanced by putting the 
  117. numerical value of an often used constant into one cell and then 
  118. writing formula which refer to that cell.  This technique has the 
  119. advantage that, if the value in the cell changes, or becomes known to a 
  120. greater accuracy (how many grammes are there in a teaspoonful?) then, 
  121. as we shall see, changing the one value in the cell (cell 'C4') will 
  122. cause a value change in all the cells which, as part of a formula, 
  123. contain reference to that one cell.
  124.  
  125. Complete rows 1 to 6 of the table as shown in [Eats01].  Here's a tip 
  126. to save you some time.  In cell 'B3' type =.  Now drag the pointer 
  127. (hold down the select button whilst you move the mouse) over slots B3 
  128. to B6.  This marks the whole range B3B6.  Now you can replicate the 
  129. equals sign through the marked block using <CTRL BRD> (Block Replicate 
  130. Down) or the same command from within the Blocks pop-up menu.  Click in 
  131. the Mark block box (just under the Pipedream 4 logo at the top of the 
  132. sheet) to clear the marked block.
  133.  
  134. Decimal Places
  135. Mark the block 'C3' to 'C6' followed by Layout - Decimal Places or 
  136. '<CTRL LDP>'.  Use the dialogue box to set 6 decimal places for every 
  137. cell within the marked block.
  138.  
  139. Calculating the Calories
  140. Complete the [Eats01] spreadsheet.  All the cells contain values which 
  141. are typed in as they are displayed on the sheet except cells 'H10' to 
  142. 'H15' and 'H17' which contain formulae.
  143.  
  144. Use Block Replicate Down to fill 'B10' to 'B15' with per.
  145.  
  146. The cell 'H10' contains the formula F10*A10/C10*C3.  The value of 
  147. A10/C10 is the number of calories per gm.  This is multiplied by C3 to 
  148. convert it to calories per oz.  Finally, you multiply by F10 to obtain 
  149. the total number of calories in the 6 oz.  Of course, multiplication is 
  150. 'commutative' (ie it doesn't matter in what order you multiply and 
  151. divide) so the order can be changed.  Notice that the mixture of 
  152. multiplication and division is evaluated from left to right so that 
  153. F10*A10/C10*C3 means (F10*A10/C10)*C3 and not F10*A10/(C10*C3).  As you 
  154. enter the formulae use the appropriate conversion factor from the set 
  155. 'C3' to 'C6'.  Check by looking at the values in 'Eats01'.
  156.  
  157. I think that the spreadsheet looks tidier if cells 'A10' to 'A15' and 
  158. those in columns C and H are set to 0 decimal places and cells 'F10' to 
  159. 'F15' to 2 decimal places.
  160.  
  161. Total a Column
  162. The formula in 'H17' is Sum(H9H16).  This Sum function saves you typing 
  163. in something such as H9+H10+H11+H12+H13+H14+H15+H16 which might get a 
  164. bit tedious if you want to add up a couple of hundred (or thousand) 
  165. numbers.  The combination H9H16 is called a Range of cells.  By the 
  166. way, I haven't got the range wrong.  I know that rows 9 and 16 are 
  167. blank; including them is deliberate as we'll see in another article 
  168. when you come to Sort a block which is summed.
  169.  
  170. Inserting a New Row
  171. The spreadsheet as it stands gives you a main course of six items.  
  172. Suppose you want to add some more items to the menu so the sheet looks 
  173. like [Eats02].  Load this now and have a look at it.
  174.  
  175. Add the Chips between the Baked Potatoes and the Carrots.  To do this 
  176. place the cursor anywhere in the row containing the Carrots, row 13.  
  177. Now use the Edit - Insert Row (or press key F7) and a new row will 
  178. appear.  What's happened to all the formulae?  In particular, what's 
  179. happened to the formula which was in 'H17' and is now in 'H18'?  If all 
  180. has gone well you should find that the Sum in 'H18' covers the range 
  181. 'H9H17' - in fact all the cell references have been 'updated' to match 
  182. the new layout.  Clever isn't it?  If you enter the values for Chips 
  183. shown in [Eats02] and a formula in column H then the calories due to 
  184. the Chips will be added to the total in 'H18'.
  185.  
  186. What If
  187. You may want three teaspoonsful of Ketchup.  Place the cursor in cell 
  188. 'F16', type 3 and press '<Return>'.  When you change values in column F 
  189. you will find that the corresponding values in column H and the total 
  190. in 'H21' also change.
  191.  
  192. You may find more accurate data than the values I have given in column 
  193. A; change them.  Perhaps you use a larger (or smaller) teaspoon for 
  194. your Ketchup; if so then change the value in cell 'C4'.  The values in 
  195. 'H16' and 'H21' will change again.
  196.  
  197. What Do You Eat?
  198. Insert a few rows and add in something which suits your own diet.  You 
  199. can delete any of the rows you don't like with <F8> and the Sum(range) 
  200. will change to match the number of rows you have.  By the way, if you 
  201. didn't believe me about the range having to include a couple of blank 
  202. rows then see what happens to your Sum(range) if you delete either the 
  203. first or last row of your range!
  204.